package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 故障记录对象 tb_fault_log
 * 
 * @author ruoyi
 * @date 2023-06-27
 */
public class TbFaultLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障记录ID */
    private Long faultLogId;

    /** 车辆编码 */
    @Excel(name = "车辆编码")
    private String carCode;

    /** 故障码编号 */
    @Excel(name = "故障码编号")
    private String faultCode;

    /** 报警状态 */
    @Excel(name = "报警状态")
    private Long alertStatus;

    /** 开始报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 最后报警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后报警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 处理人 */
    @Excel(name = "处理人")
    private String updateUser;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private Long updateStatus;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long faultDeleted;

    public void setFaultLogId(Long faultLogId) 
    {
        this.faultLogId = faultLogId;
    }

    public Long getFaultLogId() 
    {
        return faultLogId;
    }
    public void setCarCode(String carCode) 
    {
        this.carCode = carCode;
    }

    public String getCarCode() 
    {
        return carCode;
    }
    public void setFaultCode(String faultCode) 
    {
        this.faultCode = faultCode;
    }

    public String getFaultCode() 
    {
        return faultCode;
    }
    public void setAlertStatus(Long alertStatus) 
    {
        this.alertStatus = alertStatus;
    }

    public Long getAlertStatus() 
    {
        return alertStatus;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }
    public void setUpdateStatus(Long updateStatus) 
    {
        this.updateStatus = updateStatus;
    }

    public Long getUpdateStatus() 
    {
        return updateStatus;
    }
    public void setFaultDeleted(Long faultDeleted) 
    {
        this.faultDeleted = faultDeleted;
    }

    public Long getFaultDeleted() 
    {
        return faultDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultLogId", getFaultLogId())
            .append("carCode", getCarCode())
            .append("faultCode", getFaultCode())
            .append("alertStatus", getAlertStatus())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .append("updateStatus", getUpdateStatus())
            .append("faultDeleted", getFaultDeleted())
            .toString();
    }
}
